//
//  LCSubListTableViewCell.m
//  meiyinxiang
//
//  Created by apple on 2017/10/28.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "LCSubListTableViewCell.h"
@interface LCSubListTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *imgeView;

@end

@implementation LCSubListTableViewCell
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.imgeView.contentMode = UIViewContentModeCenter;
  //  self.imgeView.center = self.center;
  
}
- (void)setIndexPath:(NSIndexPath *)indexPath{
    self.imgeView.frame = CGRectMake(15, 7, ScreenWidth - 30, 135);
    if (indexPath.row == 1) {
        self.imgeView.image = [UIImage imageNamed:@"toupiao"];
    }
       // else  if (indexPath.row == 2) {
//        self.imgeView.image = [UIImage imageNamed:@"life circle_miyou"];
//    }else if (indexPath.row == 3){
//        self.imgeView.image = [UIImage imageNamed:@"life circle_quwen"];
//    }
    else {
        self.imgeView.image = [UIImage imageNamed:@"life circle_qidai"];
    }
    CGFloat with = ScreenWidth - 30;
    [self.imgeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(@(with));
        make.height.equalTo(@135);
    }];
    self.imgeView.contentMode = UIViewContentModeScaleAspectFill;
}
+(LCSubListTableViewCell *)loadNibWithLCSubCell{
    UINib *nib = [UINib nibWithNibName:@"LCSubListTableViewCell" bundle:[NSBundle mainBundle]];
    return [[nib instantiateWithOwner:nil options:nil] lastObject];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
